<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加药品</title>
    <link rel="stylesheet" href="/resource/common/layui/css/layui.css" media="all"/>
</head>

<body>
<div class="yadmin-body animated fadeIn" style="padding: 40px">
    <div class="layui-form">
        <div class="layui-form-item">
            <label class="layui-form-label">
                药品名称:
            </label>
            <div class="layui-input-block">
                <p style="line-height: 38px" type="text" th:text="${product.name}"></p>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                药品图片:
            </label>
            <div class="layui-input-block">
                <div class="layui-upload-drag" id="upImg">
                    <div id="uploadDemoView">
                        <hr>
                        <img th:src="${product.img}" alt="上传成功后渲染" style="max-width: 196px">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                规格参数:
            </label>
            <div class="layui-input-block">
                <p style="line-height: 38px" type="text" th:text="${product.specification}"></p>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                价格:
            </label>
            <div class="layui-input-block">
                <p style="line-height: 38px" type="text" th:text="${product.disPrice}"></p>
            </div>
        </div>
        <div class="layui-form-item  layui-form-text">
            <label class="layui-form-label">
                药品详情:
            </label>
            <div class="layui-input-block">
                <div style="line-height: 38px" id="div1" th:utext="${product.content}">

                </div>
            </div>
        </div>

    </div>
</div>
<script type="text/javascript" src="//unpkg.com/wangeditor/dist/wangEditor.min.js"></script>
<script type="text/javascript" src="/resource/common/layui/layui.js"></script>
<script th:inline="javascript">

    layui.use(['form', 'layer', 'upload', 'layedit'], function () {
        $ = layui.jquery;
        var form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , upload = layui.upload;

    });
</script>

</body>
</html>